home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
cadt4m.zip
/
CADET4M.DOC
next >
Wrap
Lisp/Scheme
|
1993-01-23
|
18KB
|
448 lines
CADET4M.DOC 12/23/92
GUIDE FOR ADDING CADET v4.0 SUPPORT TO AUTOCAD MENUS
Copyright 1993 Steve Waskow
The following is a guide for adding CADET v4.0 support to the pull-down
and screen sections of your AutoCAD menu. This involves editing your
menu source code, the ACAD.MNU file, and allowing AutoCAD to recompile
it into an ACAD.MNX file. This is a only a guide, not a tutorial, so we
recommend that attempts to modify AutoCAD menus only be done by those
with some experience at menu customization.
+--------------------------------------------------------------------------+
| PART 1, PULL-DOWN (POP) MENUS |
+--------------------------------------------------------------------------+
+-----------------------------------+
| MODIFYING R10 ACAD.MNU PULL-DOWNS |
+-----------------------------------+
+--------------------------------------------------------------------------+
| In the following example, CADET is attached to to the [Tools] pull-down |
| (section ***POP1). Note that we have added the submenu name **tools to |
| the [Tools] menu so that we can have direct access later, regardless of |
| the ***POP1 stack. A separator line [~--] follows the CADET menu label. |
| Here is the heading of the modified [Tools] submenu. |
+--------------------------------------------------------------------------+
***POP1
**tools
[Tools]
[CADET >]^C^C$p1=cadet $p1=*
[~--]
[OSNAP]^C^C$p1= $p1=* OSNAP \
...
+--------------------------------------------------------------------------+
| Between the [Tools] and [Filters] submenus, we add the [Cadet] submenu |
| itself. Cadet routines are executed by first setting the global |
| variable CADET@ to the appropriate character, then calling a (Wts?40) |
| function. Note that we call up the supporting screen menus ($s=...) |
| prior to executing the CADET code, and follow the CADET code with an |
| instruction to automatically swap back the [Tools] pull-down |
| ($p1=tools). We also begin the [Cadet] submenu with a selection to |
| return to [Tools]. Separator lines [~--], though not necessary, divide |
| the CADET functions into logical sections. Below is the [Cadet] |
| pull-down submenu in its entirety. |
+--------------------------------------------------------------------------+
**cadet
[Cadet]
[TOOLS >]$p1=tools $p1=*
[~--]
[Create Notes]^C^C$S=X $s=CADETJ1 ^P(setq CADET@ "N")(WtsC40)^P $p1=tools
[Create Text Table]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "C")(WtsC40)^P $p1=tools
[Add Multiple Text]^C^C$S=X $s=CADETJ3 ^P(setq CADET@ "M")(WtsP40)^P $p1=tools
[Add Text Below]^C^C^P(setq CADET@ "P")(WtsP40)^P $p1=tools
[Import ASCII File]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "I")(WtsC40)^P $p1=tools
[~--]
[Align Text Column]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "A")(WtsJ40)^P $p1=tools
[Rejustify Text]^C^C$S=X $s=CADETP2 ^P(setq CADET@ "J")(WtsJ40)^P $p1=tools
[Set Text Defaults]^C^C^P(setq CADET@ "S")(WtsP40)^P $p1=tools
[~--]
[Edit Notes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "O")(WtsE40)^P $p1=tools
[Edit Text Table]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "T")(WtsE40)^P $p1=tools
[Edit Attributes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "B")(WtsE40)^P $p1=tools
[General Mixed Edit]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "E")(WtsE40)^P $p1=tools
[Global Dwg Edit]^C^C^P(setq CADET@ "G")(WtsE40)^P $p1=tools
[Edit Text File]^C^C^P(setq CADET@ "X")(WtsM40)^P $p1=tools
+--------------------------------------------------------------------------+
| For user convenience, we also add a CADET attachment to the [Filters] |
| submenu, which is also swapped off the [Tools] submenu. Note that we |
| have also changed Filter's TOOLS menu label to address [Tools] direct by |
| submenu name ($p1=tools) instead of popping the stack. Here is the |
| modified [Filters] submenu in its entirety. |
+--------------------------------------------------------------------------+
**filters
[Filters]
[CADET >]$p1=cadet $p1=*
[~--]
.X
.Y
.Z
.XY
.XZ
.YZ
[~--]
[TOOLS >]$p1=tools $p1=*
+-----------------------------------+
| MODIFYING R11 ACAD.MNU PULL-DOWNS |
+-----------------------------------+
+--------------------------------------------------------------------------+
| Modifying the R11 menu is essentially the same as modifying R10's, with |
| the exception that the R11 submenu that contains object snaps is named |
| [Assist] instead of [Tools]. |
| |
| In the following example, CADET is attached to to the [Assist] pull-down |
| (section ***POP1). Note that we have added the submenu name **assist to |
| the [Assist] menu so that we can have direct access later, regardless of |
| the ***POP1 stack. A separator line [~--] follows the CADET menu label. |
| Here is the heading of the modified [Assist] submenu. |
+--------------------------------------------------------------------------+
***POP1
**assist
[Assist]
[CADET >]$p1=cadet $p1=*
[~--]
[Help! ]'?
...
+--------------------------------------------------------------------------+
| Between the [Assist] and [Filters] submenus, we add the [Cadet] submenu |
| itself. Cadet routines are executed by first setting the global |
| variable CADET@ to the appropriate character, then calling a (Wts?40) |
| function. Note that we call up the supporting screen menus ($s=...) |
| prior to executing the CADET code, and follow the CADET code with an |
| instruction to automatically swap back the [Assist] pull-down |
| ($p1=assist). We also begin the [Cadet] submenu with a selection to |
| return to [Assist]. Separator lines [~--], though not necessary, divide |
| the CADET functions into logical sections. Below is the [Cadet] |
| pull-down submenu in its entirety. |
+--------------------------------------------------------------------------+
**cadet
[Cadet]
[ASSIST >]$p1=assist $p1=*
[~--]
[Create Notes]^C^C$S=X $s=CADETJ1 ^P(setq CADET@ "N")(WtsC40)^P $p1=assist
[Create Text Table]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "C")(WtsC40)^P $p1=assist
[Add Multiple Text]^C^C$S=X $s=CADETJ3 ^P(setq CADET@ "M")(WtsP40)^P $p1=assist
[Add Text Below]^C^C^P(setq CADET@ "P")(WtsP40)^P $p1=assist
[Import ASCII File]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "I")(WtsC40)^P $p1=assist
[~--]
[Align Text Column]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "A")(WtsJ40)^P $p1=assist
[Rejustify Text]^C^C$S=X $s=CADETP2 ^P(setq CADET@ "J")(WtsJ40)^P $p1=assist
[Set Text Defaults]^C^C^P(setq CADET@ "S")(WtsP40)^P $p1=assist
[~--]
[Edit Notes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "O")(WtsE40)^P $p1=assist
[Edit Text Table]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "T")(WtsE40)^P $p1=assist
[Edit Attributes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "B")(WtsE40)^P $p1=assist
[General Mixed Edit]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "E")(WtsE40)^P $p1=assist
[Global Dwg Edit]^C^C^P(setq CADET@ "G")(WtsE40)^P $p1=assist
[Edit Text File]^C^C^P(setq CADET@ "X")(WtsM40)^P $p1=assist
+--------------------------------------------------------------------------+
| For user convenience, we also add a CADET attachment to the [Filters] |
| submenu, which is also swapped off the [Assist] submenu. Note that we |
| have also changed Filter's ASSIST menu label to address [Assist] direct |
| by submenu name ($p1=assist) instead of popping the stack. Here is the |
| modified [Filters] submenu in its entirety. |
+--------------------------------------------------------------------------+
**filters
[Filters]
[CADET >]$p1=cadet $p1=*
[~--]
.X
.Y
.Z
.XY
.XZ
.YZ
[~--]
[ASSIST >]$p1=assist $p1=*
+--------------------------------------------------+
| MODIFYING R11 for WINDOWS ACADWIN.MNU PULL-DOWNS |
+--------------------------------------------------+
+--------------------------------------------------------------------------+
| In the following example, CADET is attached to the [Assist] pull-down |
| submenu (section ***POP1). R11 Windows uses cascading menu system which |
| is simpler to implement than prior versions. The CADET submenu begins |
| with a "->" (start submenu) indicator in its menu label, and continues |
| to its fourteenth function which includes the "<-" (end submenu) |
| indicator. Separator lines [~--], though not necessary, divide the CADET |
| functions into logical sections. Note that we call supporting screen |
| menus ($s=...) prior to executing the CADET code. The & symbol is used |
| in the menu selections to indicate hot keys. Here is the heading of the |
| modified [Assist] submenu, which includes the cascading CADET submenu in |
| its entirety. |
+--------------------------------------------------------------------------+
***POP1
[&Assist]
[->&CADET ]
[Create &Notes]^C^C$S=X $s=CADETJ1 ^P(setq CADET@ "N")(WtsC40)
[&Create Text Table]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "C")(WtsC40)
[Add &Multiple Text]^C^C$S=X $s=CADETJ3 ^P(setq CADET@ "M")(WtsP40)
[Add Text &Below]^C^C^P(setq CADET@ "P")(WtsP40)
[&Import ASCII File]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "I")(WtsC40)
[~--]
[A&lign Text Column]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "A")(WtsJ40)
[&Rejustify Text]^C^C$S=X $s=CADETP2 ^P(setq CADET@ "J")(WtsJ40)
[&Set Text Defaults]^C^C^P(setq CADET@ "S")(WtsP40)
[~--]
[Edit N&otes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "O")(WtsE40)
[Edit Text &Table]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "T")(WtsE40)
[Edit &Attributes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "B")(WtsE40)
[General Mixed &Edit]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "E")(WtsE40)
[&Global Dwg Edit]^C^C^P(setq CADET@ "G")(WtsE40)
[<-Edit Text &File]^C^C^P(setq CADET@ "X")(WtsM40)
[~--]
[&Help! ]'?
...
+-----------------------------------+
| MODIFYING R12 ACAD.MNU PULL-DOWNS |
+-----------------------------------+
+--------------------------------------------------------------------------+
| In the following example, CADET is attached to the [Assist] pull-down |
| submenu (section ***POP2). R12 uses a cascading menu system similar to |
| that of R11 Windows, which is graceful and simple to implement. The |
| CADET submenu begins with a "->" (start submenu) indicator in its menu |
| label, and is indented through its fourteenth function, which includes |
| the "<-" (end submenu) indicator. Separator lines [--], though not |
| necessary, divide the CADET functions into logical sections. Note that |
| we call supporting screen menus ($s=...) prior to executing the CADET |
| code. Here is the heading of the modified [Assist] submenu, which |
| includes the cascading CADET submenu in its entirety. |
+--------------------------------------------------------------------------+
***POP2
[Assist]
[->CADET]
[Create Notes]^C^C$S=X $s=CADETJ1 ^P(setq CADET@ "N")(WtsC40)
[Create Text Table]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "C")(WtsC40)
[Add Multiple Text]^C^C$S=X $s=CADETJ3 ^P(setq CADET@ "M")(WtsP40)
[Add Text Below]^C^C^P(setq CADET@ "P")(WtsP40)
[Import ASCII File]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "I")(WtsC40)
[--]
[Align Text Column]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "A")(WtsJ40)
[Rejustify Text]^C^C$S=X $s=CADETP2 ^P(setq CADET@ "J")(WtsJ40)
[Set Text Defaults]^C^C^P(setq CADET@ "S")(WtsP40)
[--]
[Edit Notes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "O")(WtsE40)
[Edit Text Table]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "T")(WtsE40)
[Edit Attributes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "B")(WtsE40)
[General Mixed Edit]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "E")(WtsE40)
[Global Dwg Edit]^C^C^P(setq CADET@ "G")(WtsE40)
[<-Edit Text File]^C^C^P(setq CADET@ "X")(WtsM40)
[--]
[Help!]'?
...
+--------------------------------------------------------------------------+
| PART 2, SCREEN (SIDE) MENUS |
+--------------------------------------------------------------------------+
+-------------------------------------------------------+
| MODIFYING ACAD.MNU SCREEN MENUS, ALL RELEASES R10-R12 |
+-------------------------------------------------------+
+--------------------------------------------------------------------------+
| First, locate the top level AutoCAD menu under the ***SCREEN section of |
| ACAD.MNU. A convenient hole to add the CADET menu label is just above |
| the [SAVE:] command. Here is the tail of the top AutoCAD screen menu. |
+--------------------------------------------------------------------------+
...
[CADET]$S=X $S=CADET1
[SAVE:]^C^CSAVE
+--------------------------------------------------------------------------+
| Add the CADET screen submenus into the bottom of the ***SCREEN section, |
| just before the next section label (***TABLET1 or ***Comment). The |
| first three CADET screen submenus (**CADET1, **CADETP1 and **CADETP2) |
| are the same for all releases of AutoCAD. |
+--------------------------------------------------------------------------+
**CADET1 3
[-CADET- ]^C^C$S=X $S=CADET1
[Notes ]^C^C$S=X $s=CADETJ1 ^P(setq CADET@ "N")(WtsC40)
[Table ]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "C")(WtsC40)
[MultiTxt]^C^C$S=X $s=CADETJ3 ^P(setq CADET@ "M")(WtsP40)
[PlusText]^C^C^P(setq CADET@ "P")(WtsP40)
[Import ]^C^C$S=X $s=CADETJ2 ^P(setq CADET@ "I")(WtsC40)
[AlignCol]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "A")(WtsJ40)
[Justify ]^C^C$S=X $s=CADETP2 ^P(setq CADET@ "J")(WtsJ40)
[SetText ]^C^C^P(setq CADET@ "S")(WtsP40)
[Ed Notes]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "O")(WtsE40)
[Ed Table]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "T")(WtsE40)
[Ed Attrb]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "B")(WtsE40)
[Ed Mixed]^C^C$S=X $s=CADETP1 ^P(setq CADET@ "E")(WtsE40)
[Ed Globl]^C^C^P(setq CADET@ "G")(WtsE40)
[Ed File ]^C^C^P(setq CADET@ "X")(WtsM40)
**CADETP1 3
[-CADET-]^C^C$S=X $S=CADET1
Window
Last
Previous
Crossing
Remove
Add
Undo
**CADETP2 3
[-CADET-]^C^C$S=X $S=CADET1
Window
Last
Previous
Crossing
Remove
Add
Undo
[justify]$S=X $S=CADETJ3
+--------------------------------------------------------------------------+
| The final three CADET screen submenus (**CADETJ1, **CADETJ2 and |
| **CADETJ3) are for text justification, and differ between AutoCAD R10 |
| and later releases. Below are the R10 versions. |
+--------------------------------------------------------------------------+
**CADETJ1 3
[-CADET-]^C^C$S=X $S=CADET1
left
[centered]C
right
middle
fit
bound
wrap
**CADETJ2 3
[-CADET-]^C^C$S=X $S=CADET1
left
[centered]C
right
middle
fit
bound
**CADETJ3 3
[-CADET-]^C^C$S=X $S=CADET1
left
[centered]C
right
middle
fit
[aligned]align
+--------------------------------------------------------------------------+
| The R11 & R12 versions of the final three CADET screen submenus |
| (**CADETJ1, **CADETJ2 and **CADETJ3) include the additional R11+ text |
| justifications. Here are the versions for R11 and later. |
+--------------------------------------------------------------------------+
**CADETJ1 3
[-CADET-]^C^C$S=X $S=CADET1
Left
[Centered]C
Right
Middle
Fit
Bound
Wrap
[Top-]T\
[Middle-]M\
[Bottom-]B\
[ -Left]L
[ -Center]C
[ -Right]R
**CADETJ2 3
[-CADET-]^C^C$S=X $S=CADET1
Left
[Centered]C
Right
Middle
Fit
Bound
[Top-]T\
[Middle-]M\
[Bottom-]B\
[ -Left]L
[ -Center]C
[ -Right]R
**CADETJ3 3
[-CADET-]^C^C$S=X $S=CADET1
Left
[Centered]C
Right
Middle
Fit
[Aligned]A
[Top-]T\
[Middle-]M\
[Bottom-]B\
[ -Left]L
[ -Center]C
[ -Right]R
----------------------------------------------------------------------------
This concludes the CADET menu guide. Full AutoCAD menus for R10-12 are now
being provided with licensed copies of CADET. CADET v4.0 users who
registered prior to the start of the menu distribution can obtain the full
set of menus on request (mail or phone) from Wasco Technical Software. There
is no charge except a shipping and handling fee of $6.00 US per site, which
must be prepaid by check, M.O., VISA or MasterCard (sorry, P.O.s cannot be
accepted for such small amounts).
Steve Waskow CIS 72020,2031
Wasco Technical Software
1211 Grand Junction Drive
Katy, Texas 77450
713-392-1359 Fax 713-392-1073
CADET and CADET - the CAD Text Editor are trademarks of Steve Waskow and
Wasco Technical Software.
The CADET submenus and this documentation are Copyright 1993 by Steve Waskow.
Permission to use and distribute this document without fee is hereby granted.
STEVE WASKOW AND WASCO TECHNICAL SOFTWARE MAKES NO WARRANTY OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THIS
SOFTWARE AND DOCUMENTATION.
---------------------------
AutoCAD is a registered trademark of Autodesk, Inc.
Portions of the above menu code are Copyright (C) 1986-1992 by Autodesk, Inc.
The following notification applies to Autodesk menu code.
Permission to use, copy, modify, and distribute this software
for any purpose and without fee is hereby granted, provided
that the above copyright notice appears in all copies and that
both that copyright notice and this permission notice appear in
all supporting documentation.
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED
WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR
PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.